<{include file="scenter/block/header.html"}>
<div style="width:923px;padding:12px;margin:0 auto;">
    <div class="index_rt_top">
        <a href="<{$shop.shop_url}>" class="lt" target="_blank"><img src="<{$pager.img}>/<{$shop.logo}>" width="200" height="100"/></a>
        <div class="shop_top_lt lt">
            <p class="title"><{$shop.name}></p>
			<p>店铺名称：<a href="<{$shop.shop_url}>" target="_blank"><{$shop.title}></a></p>
			<p class="taobao_credit"><span class="block_lt" style="width:60px;">店铺信誉：</span><span class="rank_<{$shop.credit|shoprank:true}>" title="<{$shop.credit}>"></span></p>
            <p>店铺地址：<{$shop.city_name}> <{$shop.area_name}> <{$shop.addr}></p>
        </div>
        <div class="shop_top_rt lt">
            <p>店铺评分</p>
            <p><span class="starswx"><em style="width:<{$shop.avg_score*20}>%;"></em></span><span></span><span class="block_lt"><{$shop.avg_score}>分</span></p>
            <p>创店时间：<{$shop.dateline|format:"Y-m-d"}></p>
        </div>
		<div class="shop_top_rt_fresh rt">
		<p class="refresh"><a href="<{link ctl='scenter/shop:refresh' http='ajax'}>" mini-load="刷新排名"  mini-width="400">刷新排名</a><span>最新刷新时间为：<br /><{$shop.flushtime|format}></span></p>
		</div>
    </div>
	  <div class="index_all"  id='container'>
    
        </div>
        
        <div class="index_all"  id='container2'>
        
        </div>
    <div class="index_cont_lt lt">
        <div class="index_c_lt">
            <p class="title"><font class="index_c_lt_icon1 sel_index_c_lt_icon1"></font>店铺统计</p>
            <p class="txt">您需要关注的情况</p>
            <p class="txt">
                <a href="<{link ctl='scenter/shop/order:index'}>" class="green">商铺订单(<{$order_count.count}>)</a>
                <a href="<{link ctl='scenter/shop/yuyue:shop'}>" class="green">商铺预约(<{$yueyue_count}>)</a>
                <a href="<{link ctl='scenter/shop/coupon:downloads'}>" class="green">优惠券下载(<{$coupon_download_count}>)</a>
            </p>         
            <p class="txt">
                <a href="<{link ctl='scenter/product:index'}>">商品数(<{$shop.products}>)</a>
                <a href="<{link ctl='scenter/shop/comment:shop'}>">评论数(<{$shop.comments}>)</a>
                <a href="<{link ctl='scenter/shop/coupon:index'}>">优惠券(<{$coupons}>)</a>
            </p>             
        </div>
        <div class="index_c_lt">
            <p class="title"><font class="index_c_lt_icon2 sel_index_c_lt_icon2"></font>交易统计</p>
            <p class="txt">您需要关注的情况</p>
            <p class="txt">
                <a href="<{link ctl='scenter/shop/order:index' arg0='unpay'}>" class="green">新订单 (<{$order_count.new}>) </a>
                <a href="<{link ctl='scenter/shop/order:index' arg0='unship'}>" class="green">待发货 (<{$order_count.unship}>)</a>
                <a href="<{link ctl='scenter/shop/order:index' arg0='unpay'}>" class="green">待付款 (<{$order_count.unpay}>)</a>
            </p>
            <p class="txt">
                <a href="<{link ctl='scenter/shop/order:index' arg0='finish'}>">已经完成 (<{$order_count.finish}>)</a>
            </p>
        </div>
       
        <div class="index_c_lt">
            <p class="title"><font class="index_c_lt_icon3 sel_index_c_lt_icon3"></font>财务信息</p>
            <p class="txt">我的账户余额：<font class="orange">￥<{$shop.money}> 元</font></p>
            <p class="txt">
                <a href="<{link ctl='scenter/shop/money:shop' arg0='out'}>" class="green">提现 </a>
                <a href="<{link ctl='scenter/shop/money:shop'}>" class="green">出入明细</a></p>
        </div>
    </div>
    <div class="index_cont_rt rt">
        <{if $CONFIG.bulletin.shop}>
        <div class="index_c_rt">
            <p class="title"><font class="index_c_rt_icon1 sel_index_c_lt_icon1"></font>公告</p>
            <p class="txt"><{$CONFIG.bulletin.shop}></p>
        </div>
        <{/if}>
        <div class="index_c_rt">
            <p class="title"><font class="index_c_rt_icon2 sel_index_c_lt_icon2"></font>平台联系方式</p>
            <p class="txt">客服电话: <font class="green"><{$CONFIG.site.phone}></font></p>
            <p>服务时间:9:00-18:00(周一至周日)</p>          
        </div>
    </div>
</div>


<script src="<{$pager.res}>/highcharts/highcharts.js"></script>
<script src="<{$pager.res}>/highcharts/modules/exporting.js"></script>

 <script type="text/javascript">
$(function () {
    $('#container').highcharts({
       
        title: {
            text: '预约信息'
        },
        subtitle: {
            text: '统计时间:<{$smarty.now|date_format:"%Y-%m-%d %H:%M:%S"}>'
        },
        xAxis: {
            categories: [<{foreach $data as $k=>$d name=d}>"<{$k}>"<{if !$smarty.foreach.d.last}>,<{/if}><{/foreach}>],
            crosshair: true
        },
        credits: {
            enabled: false
        },
        yAxis: {
            min: 0,
            //tickInterval: 10,
            title: {
                text: '七日数据分析'
            }
        },
        tooltip: {
            headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
            pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
                '<td style="padding:0"><b>{point.y:.1f}</b></td></tr>',
            footerFormat: '</table>',
            shared: true,
            useHTML: true
        },
        plotOptions: {
            column: {
                pointPadding: 0.2,
                borderWidth: 0,
            }
        },
        series: [{
            name: '商铺预约',
            data: [<{foreach $data as $d name=d1}><{$d['yuyue']}><{if !$smarty.foreach.d1.last}>,<{/if}><{/foreach}>]
        }, {
            name: '优惠券下载',
            data:  [<{foreach $data as $d name=d2}><{$d['download']}><{if !$smarty.foreach.d2.last}>,<{/if}><{/foreach}>]
        }, {
            name: ' 商铺评论',
            data:  [<{foreach $data as $d name=d3}><{$d['comment']}><{if !$smarty.foreach.d3.last}>,<{/if}><{/foreach}>]
        }]
    });
});
		</script>
        
        
        <script type="text/javascript">
$(function () {
    $('#container2').highcharts({
       
        title: {
            text: '订单信息'
        },
        subtitle: {
            text: '统计时间:<{$smarty.now|date_format:"%Y-%m-%d %H:%M:%S"}>'
        },
        xAxis: {
            categories: [<{foreach $data as $k=>$d name=d}>"<{$k}>"<{if !$smarty.foreach.d.last}>,<{/if}><{/foreach}>],
            crosshair: true
        },
        credits: {
            enabled: false
        },
        yAxis: {
            min: 0,
            //tickInterval: 10,
            title: {
                text: '七日数据分析'
            }
        },
        tooltip: {
            headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
            pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
                '<td style="padding:0"><b>{point.y:.1f}</b></td></tr>',
            footerFormat: '</table>',
            shared: true,
            useHTML: true
        },
        plotOptions: {
            column: {
                pointPadding: 0.2,
                borderWidth: 0,
            }
        },
        series: [{
            name: '新订单',
            data: [<{foreach $data2 as $d name=d1}><{$d['new']}><{if !$smarty.foreach.d1.last}>,<{/if}><{/foreach}>]
        }, {
            name: '未支付',
            data:  [<{foreach $data2 as $d name=d2}><{$d['unpay']}><{if !$smarty.foreach.d2.last}>,<{/if}><{/foreach}>]
        }, {
            name: '待发货',
            data:  [<{foreach $data2 as $d name=d4}><{$d['unship']}><{if !$smarty.foreach.d4.last}>,<{/if}><{/foreach}>]
        }, {
            name: '已完成',
            data:  [<{foreach $data2 as $d name=d4}><{$d['finish']}><{if !$smarty.foreach.d4.last}>,<{/if}><{/foreach}>]
        }]
    });
});
		</script>
<{include file="scenter/block/footer.html"}>
